package m.html.element;

import m.html.element.other.InputElement;

public class Select extends InputElement {

	public Select(String field,String dict) {
		super("a-select");
		super.setField(field);
		super.A("showSearch","true");
		super.A(":filter-option","selectFilter");
		if(!dict.startsWith("'")) dict="'"+dict+"'";
		super.A(":options","dictOptions("+dict+")");
		viewElement=Element.tag("div").A("class","input-view-box").E("{{dict("+dict+","+field+")}}");
	}
	
}
